package model;

public class PrimaryKeyShare {

	int idShareOnPhone;
	int idSender;
	
	public PrimaryKeyShare() {
		super();
	}

	public PrimaryKeyShare(int idShare, int idSender) {
		super();
		this.idShareOnPhone = idShare;
		this.idSender = idSender;
	}
	
	public int getIdShareOnPhone() {
		return idShareOnPhone;
	}

	public void setIdShareOnPhone(int idShareOnPhone) {
		this.idShareOnPhone = idShareOnPhone;
	}

	public int getIdSender() {
		return idSender;
	}

	public void setIdSender(int idSender) {
		this.idSender = idSender;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + idSender;
		result = prime * result + idShareOnPhone;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PrimaryKeyShare other = (PrimaryKeyShare) obj;
		if (idSender != other.idSender)
			return false;
		if (idShareOnPhone != other.idShareOnPhone)
			return false;
		return true;
	}

}
